// import request from '@/uitls/request'
import axios from 'axios'

// 获取搜索联想接口
export const getSearch = q => {
  return axios({
    url: 'http://toutiao.itheima.net/v1_0/suggestion',
    method: 'GET',
    params: {
      q
    }
  })
}

// 获取搜索结果接口
export const getSearchResult = params => {
  return axios({
    url: 'http://toutiao.itheima.net/v1_0/search',
    method: 'GET',
    params
  })
}
